using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TerritoryDesignTools._Analysis
{
    /// <summary>
    /// <para>Set Balance Variables</para>
    /// <para>Configures variables to be used in the balancing process.</para>
    /// <para>配置要在平衡过程中使用的变量。</para>
    /// </summary>    
    [DisplayName("Set Balance Variables")]
    public class SetBalanceVariables : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SetBalanceVariables()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_territory_solution">
        /// <para>Input Territory Solution</para>
        /// <para>The name of the input territory solution.</para>
        /// <para>输入区域解决方案的名称。</para>
        /// </param>
        /// <param name="_level">
        /// <para>Level</para>
        /// <para>The name of the level to which the calculated field will be added.</para>
        /// <para>将计算字段添加到的级别的名称。</para>
        /// </param>
        public SetBalanceVariables(object _in_territory_solution, object _level)
        {
            this._in_territory_solution = _in_territory_solution;
            this._level = _level;
        }
        public override string ToolboxName => "Territory Design Tools";

        public override string ToolName => "Set Balance Variables";

        public override string CallName => "td.SetBalanceVariables";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_territory_solution, _level, _variables, _out_territory_solution];

        /// <summary>
        /// <para>Input Territory Solution</para>
        /// <para>The name of the input territory solution.</para>
        /// <para>输入区域解决方案的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Territory Solution")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_territory_solution { get; set; }


        /// <summary>
        /// <para>Level</para>
        /// <para>The name of the level to which the calculated field will be added.</para>
        /// <para>将计算字段添加到的级别的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Level")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _level { get; set; }


        /// <summary>
        /// <para>Balance Variables</para>
        /// <para><xdoc>
        ///   <para>The variables that will be used in the balance process.
        ///   <bulletList>
        ///     <bullet_item>Variable—The defined input.  </bullet_item><para/>
        ///     <bullet_item>Weight—The amount of influence a given variable has in the analysis.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>将在平衡过程中使用的变量。
        ///   <bulletList>
        ///     <bullet_item>变量 （Variable） - 定义的输入。</bullet_item><para/>
        ///     <bullet_item>权重 - 给定变量在分析中的影响程度。</bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Balance Variables")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _variables { get; set; } = null;


        /// <summary>
        /// <para>Updated Territory Solution</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Territory Solution")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_territory_solution { get; set; }


        public SetBalanceVariables SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}